package com.udima.reglocation;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

/**
 * 
 * Menú de aplicación
 * 
 * @author luis
 *
 */

public class TrackMenuActivity extends Activity {
	private TextView lblGotoConf;
	private TextView lblGotoSave;
	private TextView lblGotoList;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.menu_track_activity);

		lblGotoConf = (TextView) findViewById(R.id.link_to_conf);
		lblGotoConf.setOnClickListener(new OnClickListener() {
        	@Override
        	public void onClick(View v) {
        		Intent itemintent = new Intent(TrackMenuActivity.this, ConfTrackActivity.class);
        		TrackMenuActivity.this.startActivity(itemintent);
        	}
        });
		
		lblGotoSave = (TextView) findViewById(R.id.link_to_use);
		lblGotoSave.setOnClickListener(new OnClickListener() {
        	@Override
        	public void onClick(View v) {
        		Intent itemintent = new Intent(TrackMenuActivity.this, SaveTrackActivity.class);
        		TrackMenuActivity.this.startActivity(itemintent);
        	}
        });
		
		lblGotoList = (TextView) findViewById(R.id.link_to_list);
        lblGotoList.setOnClickListener(new OnClickListener() {
        	@Override
        	public void onClick(View v) {
        		Intent itemintent = new Intent(TrackMenuActivity.this, ListTrackActivity.class);
        		TrackMenuActivity.this.startActivity(itemintent);
        	}
        });
	}
}
